package com.mec.web.y2012.coreservlet;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

import org.apache.log4j.Logger;

public class SocketUtil {

	public static BufferedReader getReader(Socket s) throws IOException{
		return new BufferedReader(new InputStreamReader(s.getInputStream()));
	}
	
	public static PrintWriter getWriter(Socket s) throws IOException{
		return new PrintWriter(s.getOutputStream(), true);
	}
	private static final Logger logger =
			Logger.getLogger(SocketUtil.class);
}
